[Contents] [Index] [Help] [Browse <] [Browse >]
 -- Command: slider ID/K, COMMAND/K, PORT/K, HELP/K, NODE/K, ATTRS/K/M
     Slider gadget objects are created with this command.  Slider,
     popslider and knob gadgets are essentially identical with the only
     difference being the base object class to create each type of
     object.  All options are identical for these objects.

        * ID [I..] - an id can be assigned to a slider gadget for later
          reference.  The id can be any combination of up to 5
          characters.  If the id is given without any other arguments,
          and the slider gadget has been previously created, then the
          current slider level will be returned in RESULT (if OPTIONS
          RESULTS is specified in the script).

        * COMMAND [I..] - if given, the command will be executed
          whenever the slider gadget is changed.  For a complete
          description of this option see Command-Port Options.  Note
          that the slider gadget level will be used to replace a `%s'
          contained in the command string.  Caution must be taken since
          movement of the slider can result in a lot of commands.  If
          the command is at all time consuming the result will be very
          sluggish slider action.

        * PORT [I..] - a specific host port may be specified by this
          argument. For a complete description of this option see
          Command-Port Options.

        * HELP [I..] - with this argument help text may be defined
          which will be displayed as balloon help whenever the pointer
          is over the associated slider gadget.  Of course, this is
          dependant on whether the user set up balloon help in the MUI
          preference settings.

        * NODE [I..] - this argument is used to specify a node in the
          guide file given in the command line argument HELP for
          `MUIRexx'.  If the user positions the mouse pointer over the
          slider gadget and presses the help button on the keyboard
          then the guide file will be displayed at the node location.

        * ATTRS [ISG] - with this option any MUIA attribute TAGs may be
          set or retrieved (see Attribute TAGs).

     Some useful TAGs for use with this command are:

          TAG_Name =                        TAG_id          Flags Type
          
          Slider_Horiz =                    0x8042fad1 /* V11 isg BOOL */
          Slider_Level =                    0x8042ae3a /* V4  isg LONG */
          Slider_Max =                      0x8042d78a /* V4  isg LONG */
          Slider_Min =                      0x8042e404 /* V4  isg LONG */
          Slider_Quiet =                    0x80420b26 /* V6  i.. BOOL */
          Slider_Reverse =                  0x8042f2a0 /* V4  isg BOOL */
          Numeric_Default =                 0x804263e8 /* V11 isg LONG */
          Numeric_Format =                  0x804263e9 /* V11 isg STRPTR */
          Numeric_Max =                     0x8042d78a /* V11 isg LONG */
          Numeric_Min =                     0x8042e404 /* V11 isg LONG */
          Numeric_Reverse =                 0x8042f2a0 /* V11 isg BOOL */
          Numeric_RevLeftRight =            0x804294a7 /* V11 isg BOOL */
          Numeric_RevUpDown =               0x804252dd /* V11 isg BOOL */
          Numeric_Value =                   0x8042ae3a /* V11 isg LONG */
          ControlChar =                     0x8042120b /* V4  isg char */
          CycleChain =                      0x80421ce7 /* V11 isg LONG */
          Disabled =                        0x80423661 /* V4  isg BOOL */
          FixHeight =                       0x8042a92b /* V4  i.. LONG */
          FixHeightTxt =                    0x804276f2 /* V4  i.. STRPTR */
          FixWidth =                        0x8042a3f1 /* V4  i.. LONG */
          FixWidthTxt =                     0x8042d044 /* V4  i.. STRPTR */
          HorizDisappear =                  0x80429615 /* V11 isg LONG */
          HorizWeight =                     0x80426db9 /* V4  isg WORD */
          MaxHeight =                       0x804293e4 /* V11 i.. LONG */
          MaxWidth =                        0x8042f112 /* V11 i.. LONG */
          Selected =                        0x8042654b /* V4  isg BOOL */
          ShowMe =                          0x80429ba8 /* V4  isg BOOL */
          VertDisappear =                   0x8042d12f /* V11 isg LONG */
          VertWeight =                      0x804298d0 /* V4  isg WORD */
          Weight =                          0x80421d1f /* V4  i.. WORD */
          
          Note: Consult MUI:Developer/Autodocs/MUI_Slider.doc, MUI_Numeric.doc,
                MUI_Area.doc and MUI:Developer/C/Include/libraries/mui.h

     Example use of this command:

          window ID DEMO
              .
              .
              .
              group HORIZ
                  space HORIZ
                  group
                      knob ID KNOB HELP '"an example knob gadget"'
                      popslider ID PSLD HELP '"an example popup slider gadget"'
                  endgroup
                  meter ID METR NODE '"meter"' LABEL '"meter"'
                  space HORIZ
              endgroup
              slider ID SLDR ATTRS Slider_Level 50
              gauge ID GAUG NODE '"gauge"' LABEL '"level %ld"' ATTRS Gauge_Horiz TRUE
              object CLASS '"Scale.mui"'
          endwindow